import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import iView from 'iview'
import config from '@/config'
import Viewer from 'v-viewer'
import 'viewerjs/dist/viewer.css'
import 'iview/dist/styles/iview.css'
import './index.less'
import '@/assets/icons/iconfont.css'
import vueMoment from 'vue-moment'
import _ from 'lodash';
import VideoPlayer from 'vue-video-player'
import'video.js/dist/video-js.css';
import'vue-video-player/src/custom-theme.css';
Vue.use(VideoPlayer)
import  '_c/global';
// if (process.env.NODE_ENV !== 'production') require('@/mock')
import "babel-polyfill"
Vue.config.productionTip = false
//easyTable
import 'vue-easytable/libs/themes-base/index.css'
import {VTable,VPagination} from 'vue-easytable'
Vue.component(VTable.name, VTable)
Vue.component(VPagination.name, VPagination)
import tableOperation from '@/view/event-management/components/del/del.vue'
Vue.component(tableOperation.name, tableOperation)

/**
 * @description 全局注册应用配置
 */
Vue.prototype.$config = config
Vue.use(iView)
Vue.use(vueMoment)
Vue.use(Viewer);
Viewer.setDefaults({
  Options: { "inline": true, "button": true, "navbar": true, "title": true, "toolbar": true, "tooltip": true, "movable": true, "zoomable": true, "rotatable": true, "scalable": true, "transition": true, "fullscreen": true, "keyboard": true, "url": "data-source" }
});
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')

